from django.urls import path
from .views import CreatePaper, PaperListView, PaperDetailView, DeletePaper, UpdatePaper, ChangePaper

urlpatterns = [
    path('', PaperListView.as_view(), name='create_list'),  # 试卷列表
    path('detail/', PaperDetailView.as_view(), name='create_detail'),  # 根据id查询试卷
    path('create/', CreatePaper.as_view(), name='create_paper'),  # 创建试卷
    path('delete/', DeletePaper.as_view(), name='delete_paper'),  # 删除试卷
    path('update/', UpdatePaper.as_view(), name='update_paper'),  # 修改试卷
    path('change/', ChangePaper.as_view(), name='change_paper'),  # 切换试卷状态
]
